Skip to content

Remove an optimization to catch all messages when they are not ordered#21

Merged
Ma11hewThomas merged 1 commit into
ctrf-io:mainfrom
jmaitrehenry:jmaitrehenry/fix-output
Nov 1, 2025
Merged

Remove an optimization to catch all messages when they are not ordered#21
Ma11hewThomas merged 1 commit into
ctrf-io:mainfrom
jmaitrehenry:jmaitrehenry/fix-output

Conversation

@jmaitrehenry
Copy link
Copy Markdown
Contributor

We have a bug with the parallelization of our tests, we could receive message from other tests in the middle of current tests and the current implementation of the reporter doesn't support that.

For fixing it, we need to remove break in the loop. For large codebase, it could be an issue, the other solutions is to use a map where the key will be the packageName and testName. What do you think?

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 18599667092

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+9.6%) to 58.31%

Totals Coverage Status
Change from base Build 16695660295: 9.6%
Covered Lines: 207
Relevant Lines: 355

💛 - Coveralls

@Ma11hewThomas Ma11hewThomas merged commit 23bfef1 into ctrf-io:main Nov 1, 2025
6 checks passed
@Ma11hewThomas
Copy link
Copy Markdown
Contributor

Thanks for the fix @jmaitrehenry!

I'm happy with this solution, the original break was well intentioned but with Go's speed, I'm not worried about performance with large test suites.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants